<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>接口详情</title>
</head>
<body>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f5f5f5;
            padding: 20px;
        }
        .container {
            max-width: 800px;
            margin: 0 auto;
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .form-group {
            margin-bottom: 20px;
            display: flex;
            align-items: center; /* 垂直居中对齐 */
            gap: 10px; /* 设置元素之间的间距 */
        }
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        .form-group input, .form-group textarea {
            width: 100%;
            border: 3px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
            height: 30px;
            background-color: #f9f9f9;
        }

        .form-group textarea {
            height: 300px;
            overflow: auto;
        }
        .form-group input[type="text"] {
            flex: 1; /* 输入框占据剩余空间 */
            border: 3px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
            height: 30px;
            background-color: #f9f9f9;
        }

        .form-group button {
            background-color: #007BFF;
            color: white;
            border: none;
            padding: 3px 6px;
            border-radius: 3px;
            cursor: pointer;
        }

        .error-message {
            color: red;
            margin-bottom: 15px;
        }

    </style>

    <div class="container">
        <a href="javascript:history.back()" style="display: block; text-align: right; margin-bottom: 20px; color: #007BFF; text-decoration: none;">返回上一级</a>
        <h5 style="color: #007BFF; text-align: center; margin-bottom: 20px;">测试桩-接口详情</h5>
        <div class="form-group">
            <label for="interfaceCode">接口编码(非中文):</label>
        </div>
        <div class="form-group">
            <input type="text" name="api_name" id="api_name" readonly value={{api_name}}>
        </div>
        <div class="form-group">
            <label for="interfaceCode">接口名称:</label>
        </div>
        <div class="form-group">
            <input type="text" name="description" id="description" readonly  value={{description}}>
        </div>

        <div class="form-group">
            <label for="interfaceCode">请求地址:</label>
        </div>
        <div class="form-group">
            <input type="text" name="url" id="url" readonly value={{url}}>
            <button type="button" onclick="window.open('{{url}}', '_blank')">测试</button>
        </div>

        <div class="form-group">
            <label>响应报文：</label>
        </div>

        <div class="form-group">
            <textarea class="textarea" name="data" readonly>{{data}}</textarea>
        </div>
    </div>
</body>
</html>